package com.wesley.factory.pizza;

import java.text.SimpleDateFormat;

/**
 * <h1>概述</h1>
 * <p>详述</p>
 *
 * @Date: 2021/8/11
 */
public class OrderPizza extends SimpleFactory {

    private final SimpleFactory simpleFactory;

    public OrderPizza() {
        this.simpleFactory = new SimpleFactory();
    }

    public void makePizzaOrder(String name) {
        Pizza pizza = simpleFactory.createPizza(name);
        pizza.prepare();
        pizza.doing();
        pizza.done();
    }

}
